'use strict';

const conn = require('../../libs/Conn');

module.exports = async function (params) {
    let delObj = {
        delete_sign: 2,
    };
    let updateSql = `UPDATE quality_check_file  SET ? WHERE check_id = ?;DELETE FROM quality_check_user_middle WHERE check_id = ?`;
    await conn(updateSql, [delObj, params.check_id,params.check_id]);
    return {success: true};
};